package com.rjet.javacallpython;

import org.python.util.PythonInterpreter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class JavacallpythonApplication {

    public static void main(String[] args) {
        SpringApplication.run(JavacallpythonApplication.class, args);

        PythonInterpreter interpreter = new PythonInterpreter();
        interpreter.execfile("classpath:qrcode_location.py");//放脚本的位置
        interpreter.cleanup();
        interpreter.close();
    }

}
